package com.situ.stl.mapper;

import com.situ.stl.entity.Course;
import com.situ.stl.vo.CourseVo;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface CourseMapper {
    List<Course> selectByCoachId(@Param("coachId") Integer coachId);

    List<CourseVo> select(Course course);

    int insert(Course course);

    Course selectCourseById(@Param("id") Integer id);

    int delete(@Param("id") Integer id);

    int modifyCourse(Course course);


    List<Course> getCourseList(@Param("search") String search);

    List<Course> selectByRoomAndTime(@Param("room") String room, @Param("startTime") Date startTime, @Param("endTime") Date endTime);

    List<CourseVo> selectByHot(Course course);
}
